<%--
  Created by IntelliJ IDEA.
  User: WHH
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String[][] array = {{"一","二","三"},{"四","五","六"},{"七","八","九"}};
%>
<html>
<head>
    <meta charset ="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>Java二维数组实例</h1>
<table border="1" cellpadding="0" width="100" height="100">
    <tr align="center">
        <th>第一列</th>
        <th>第二列</th>
        <th>第三列</th>
    </tr>
    <%
        for(int i = 0;i < array.length;i++){
    %>
    <tr align="center">
        <%
            for(int j = 0;j < array[i].length;j++){
        %>
        <td><%= array[i][j] %></td>
        <%
            }
        %>
    </tr>
    <%
        }
    %>
</table>
</body>
</html>
